<div class="febs-container" id="task-edit">
    <div class="febs-body febs-open-body    layui-fluid"  lay-title="编辑任务">
        <form class="layui-form" action="" lay-filter="task-edit-form">
            <div class="layui-card">
                <div class="layui-card-body">
            <div class="layui-form-item">
                <div class="layui-row">
                 <div class="layui-col-xs12">
                <label class="layui-form-label febs-form-item-require">项目编号:</label>
                <div class="layui-input-block">
                    <select name="projectCode" id="projectCode" lay-verify="required" lay-filter="projectCode"
                     style="overflow: visible"       lay-search>
                        <option value="">请选择</option>
                    </select>
                </div>
                 </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-xs12">
                    <label class="layui-form-label febs-form-item-require">任务编号:</label>
                <div class="layui-input-block">
                    <input type="text" name="taskCode"   placeholder="任务编号"  lay-verify="required"  id="taskCode" class="layui-input">
                </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-xs12">
                <label class="layui-form-label ">所需模型:</label>
                <div class="layui-input-block">
                    <select name="modelids" id="modelids"  style="overflow: visible"
                            xm-select-direction="down" xm-select-skin="default"
                            xm-select="modelids" lay-search   lay-filter="modelids"  >
                    </select>
                </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-xs12">
                <label class="layui-form-label febs-form-item-require">任务类型</label>
                <div class="layui-input-block">
                    <select name="taskType" id="taskType"   style="overflow: visible"     lay-verify="required" lay-filter="taskType"
                            lay-search>
                        <option value="">请选择</option>
                    </select>
                </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-xs12">
                <label class="layui-form-label febs-form-item-require">所需资源</label>
                <div class="layui-input-block">
                    <select name="rsid" id="rsid" lay-verify="required"   style="overflow: visible" lay-filter="rsid" lay-search>
                        <option value="">请选择</option>
                    </select>
                </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item febs-hide">
                <label class="layui-form-label febs-form-item-require">状态</label>
                <div class="layui-input-block">
                    <select name="status" id="status"  style="overflow: visible"  lay-filter="status" lay-search>
                        <option value="">请选择</option>
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-xs12">
                <label class="layui-form-label febs-form-item-require ">试验工时:</label>
                <div class="layui-input-block  layui-input-group">
                    <input type="number"   min="0" step="0.5" name="testDay"
                     placeholder="试验工时"      class="layui-input"><span style="text-align: left;padding-left: 15px;">天
                </span>
                </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item"  id="paiqi" style="display: none;">
                <div class="layui-row">
                    <div class="layui-col-xs12">
                <label class="layui-form-label ">试验内容:</label>
                <div class="febs-table-full" style="padding-left: 60px;">
                    <table lay-filter="tasktestTable" id="tasktestTable"
                           name="tasktestTable"  lay-data="{id: 'tasktestTable'}"></table>
                </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item"  id="changshui" style="display: none;">
                <div class="layui-row">
                    <div class="layui-col-xs12">
                <label class="layui-form-label ">试验内容:</label>
                <div class="febs-table-full" style="padding-left: 60px;">
                    <table lay-filter="tasktestTablecs" id="tasktestTablecs"
                           name="tasktestTablecs"  lay-data="{id: 'tasktestTablecs'}"></table>
                </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item" id="banliu"   style="display: none; ">
                <div class="layui-row">
                    <div class="layui-col-xs12">
                <label class="layui-form-label ">试验内容:</label>
                <div class="febs-table-full"  style="padding-left: 60px;">
                    <table lay-filter="tasktestTablebl1" id="tasktestTablebl1"
                           name="tasktestTablebl1"  lay-data="{id: 'tasktestTablebl1'}"></table>
                    <table lay-filter="tasktestTablebl2" id="tasktestTablebl2"
                           name="tasktestTablebl2"  lay-data="{id: 'tasktestTablebl2'}"></table>
                </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item"  id="liuxiang"  style="display: none;">
                <div class="layui-row">
                    <div class="layui-col-xs12">
                <label class="layui-form-label ">试验内容:</label>
                <div class="febs-table-full"  style="padding-left: 60px;">
                    <table lay-filter="tasktestTablelx" id="tasktestTablelx"
                           name="tasktestTablelx"  lay-data="{id: 'tasktestTablellx'}"></table>
                </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-xs12">
                <label class="layui-form-label "  style="padding-left: 40px;">是否重点任务:</label>
                <div class="layui-input-block">
                    <input type="checkbox" lay-filter="iskeyTask" id="iskeyTask" title="是">
                </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item"   id="explainCss" style="display: none;">
                <div class="layui-row">
                    <div class="layui-col-xs12">
                <label class="layui-form-label "  style="padding-left: 40px;">重点任务说明:</label>
                <div class="layui-input-block"  style="margin-left:155px !important;">
                    <input type="text" lay-filter="keyExplain" id="keyExplain"  placeholder="请输入为什么是重点任务" class="layui-input" name="keyExplain" >
                </div>
                   </div>
                </div>
            </div>


            <div class="layui-form-item">
                <div class="layui-row">
                <label class="layui-form-label"  style="margin-left:-25px;" >备   注:</label>
                <div class="layui-input-block">
                    <textarea type="text" name="remark" class="layui-textarea"
                      placeholder="备注"        maxlength="200"></textarea>
                    </div>
                </div>
            </div>

            <div class="layui-form-item  febs-hide">
                <div class="layui-row">
                    <div class="layui-col-md6">
                        <label class="layui-form-label ">计划开始日期：</label>
                        <div class="layui-input-block">
                            <input type="text" id="planStartdate"   name="planStartdate"   class="layui-input">
                        </div>
                    </div>

                    <div class="layui-col-md6">
                        <label class="layui-form-label ">计划结束时间：</label>
                        <div class="layui-input-block">
                            <select type="text"  style="overflow: visible" id="planStarttime" name="planStarttime">
                                <option  value="">请选择</option>
                                <option value="09:00">9:00</option>
                                <option value="12:00">12:00</option>
                                <select>
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item febs-hide">
                <div class="layui-row">
                    <div class="layui-col-md6">
                        <label class="layui-form-label ">计划结束日期：</label>
                        <div class="layui-input-block">
                            <input type="text" id="planEnddate"   name="planEnddate"   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-col-md6">
                        <label class="layui-form-label ">计划结束时间：</label>
                        <div class="layui-input-block">
                            <select  id="planEndtime" name="planEndtime"  style="overflow: visible"  lay-search>
                                <option  value="">请选择</option>
                                <option value="12:00">12:00</option>
                                <option value="17:00">17:00</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>




            <div class="layui-form-item febs-hide">
                <label class="layui-form-label ">实际开始时间：</label>
                <div class="layui-input-block">
                    <input type="text" name="actuallyStartdate" autocomplete="off" class="layui-input"
                           maxlength="8">
                </div>
            </div>
            <div class="layui-form-item  febs-hide">
                <label class="layui-form-label ">实际结束时间：</label>
                <div class="layui-input-block">
                    <input type="text" name="actuallyEnddate" autocomplete="off" class="layui-input"
                           maxlength="8">
                </div>
            </div>

            <div class="layui-form-item febs-hide">
                <label class="layui-form-label ">创建时间：</label>
                <div class="layui-input-block">
                    <input type="text" name="createdTime" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block  layui-input-block-html" id="fileUploadBtn"  style="margin-left:50px !important;">
                </div>
            </div>

            <div class="layui-form-item "  style="text-align:center">
                <button class="layui-btn" lay-submit=""  type="button" lay-filter="task-edit-form-save"
                        id="save">提交</button>
                <button class="layui-btn" lay-submit=""   style="margin-left: 20px;"   type="button"
                        lay-filter="task-edit-form-saveAndNew"
                        id="saveAndNew">提交并继续新增</button>
            </div>
                </div>
            </div>
        </form>
    </div>
</div>

<script type="text/html" id="toolbarDemo">
    <div class="layui-btn-container">
        <div class="layui-btn layui-btn-sm"    type="button"   lay-event="addrow" >
            <em class="layui-icon">&#xe654;</em>
        </div>
    </div>
</script>

<script type="text/html" id="toolbarRow">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-sm"  type="button"   lay-event="editrow" >编辑行</button>
        <button class="layui-btn   layui-btn-sm"   type="button"  lay-event="delrow" >删除行</button>
    </div>
</script>

<script data-th-inline="javascript">
    var taskData = [[${task}]];
    var resourceListData = [[${resourceList}]];
    var projectListData = [[${projectList}]];
</script>
<script th:src="@{/febs/js/sypq/task/taskEdit.js(v=1)}"></script>

<style type="text/css">
    .layui-form-label {
        width: 100px !important;
    }

    .layui-input-block {
        margin-left: 130px !important;
    }
    .layui-table-view {
        .layui-table-tool {
            min-height: 0px !important;
            line-height: 0px !important;
            padding-top: 0px !important;
            padding-bottom: 0px !important;
        }
    }

    .layui-table-page {
       display: none !important;
    }

    .layui-table-cell {
        font-size: 12px;
    }

</style>